{% extends "shop/base.html" %}
{% load i18n %}
{% load thumbnail %}
{% load satchmo_category %}

{% block navbar %}
<li class="first">Главная</li>

{% endblock %}


{% block sidebar-categories %}
{% endblock sidebar-categories %}

{% block content %}

{% if not categorylist %}
	{% category_list as categorylist %}{% endcategory_list %}
{% endif %}

<h2>{% trans "Каталог" %}</h2>
{% for category in categorylist %}
<div class="category">
	    <div class = "productImage">    
		    {% if category.main_image %}
	    <center>
		{% thumbnail category.main_image.picture 85x85 as image %}
		<a href="{{ category.get_absolute_url }}"><img src="{{ image }}" width="{{ image.width }}" height="{{ image.height }}" /></a>
	    </center>
		    {% endif %}     
	    <p><a href="{{ category.get_absolute_url }}">{{ category.translated_name }}</a><br/>
		    </p>
	    </div>
</div>
{% endfor %}
{% endblock %}
